from app import app
from app.models import Todo
from flask_script import Manager

manager = Manager(app)


@manager.command
def save():
    todo = Todo(content='hello world')
    todo.save()

if __name__ == '__main__':
    manager.run()
